package com.ly.hotel.model;

import java.util.List;

/**
 * Ad entity. @author MyEclipse Persistence Tools
 */

public class Ad implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	//广告大类
	public static final int VOD = 1;
	public static final int TV = 2;
	public static final int INTRO = 3;
	public static final int HOME = 4;

	public static final int MUSIC = 5;
	public static final int LIVE = 6;
	public static final int NETWORK = 7;
	public static final int GAMES = 8;

	private Integer id;
	private String name;
	private Integer type;

	private List<AdDetail> details;

	// Constructors

	/** default constructor */
	public Ad() {
	}

	/** full constructor */
	public Ad(String name, Integer position) {
		this.name = name;
		this.type = position;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public List<AdDetail> getDetails() {
		return details;
	}

	public void setDetails(List<AdDetail> details) {
		this.details = details;
	}

}